<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonEdit.jsp"%>
<%@ include file="/commons/tabs.jsp"%>
<script language="JavaScript" src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/validation/validation.js"></script>
<script language="JavaScript"  src="${ctx}/scripts/div/common.js"></script>
<%@ include file="/commons/dateTime.jsp" %>
<script type="text/javascript">
	var ACTION_URL="${ctx}/charge_calculateAction.do?";


	function calculate(){
		var pars=$('form1').serialize();
		var isTure=$("form1").fireEvent("onSubmit");
		if(isTure){
			var obj=findFrame('main');
			obj.resultResponse(pars);
			windowClose();
		}
	}

	//关闭或打开按钮事件
	function closeORopenButton(){
		$$('window_footer').disabled= !$$('window_footer').disabled;
		$('btn1_22').disabled= !$('btn1_22').disabled;
		$('btn1_32').disabled= !$('btn1_32').disabled;
	}

</script>
<body>
<form action="" method="post" class="required-validate" name="form1">
<input type="hidden" name="periodId" value="${period.keyword}">
<input type="hidden" id="endDate" value="${period.endDate}">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="window_head_outBg"><table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="121"><img src="${ctx}/images/ico_Advance.gif" width="16" height="16" align="absmiddle"><span class="window_head_intext">应收计算</span></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td class="aux_header_line_1"></td>
  </tr>
  <tr>
    <td class="aux_header_line_2"></td>
  </tr>
  <tr>
    <td class="content"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="aux_outtable_color"><table width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color">
          	<tr>
	            <td class="aux_intable_td1">当前收费周期：</td>

	            <td class="aux_intable_td1">${period.period}</td>
            </tr>
            <tr>
	            <td class="aux_intable_td1">当前管理区：</td>

	            <td class="aux_intable_td1">${period.precinctName}</td>
            </tr>
            <tr>
              <td class="aux_intable_td1">截止缴费日期：</td>
              <td class="aux_intable_td2">
              <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td>${period.firstPayDate}</td>
                </tr>
              </table>
              </td>
            </tr>

           <tr>
              <td class="aux_intable_td1">优惠期截止缴费日期：</td>
              <td class="aux_intable_td2">
              <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td>${period.lastPayDate}</td>
                </tr>
              </table>
              </td>
            </tr>

        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td align="left" class="window_footer"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
        <td class="btn_between_space">&nbsp;</td>
        <td><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_21"></td>
              <td class="buttonOffMiddle" id="btn1_22" onClick="calculate();" onMouseOver="btn_change_over(2)" onMouseOut="btn_change_out(2)" onBlur="btn_change(2)"><img src="${ctx}/images/ico_ok.gif" alt="" width="14" height="14" border="0" align="absbottom"> ${key.ok}</td>
              <td class="buttonOffRight" id="btn1_23"></td>
            </tr>
        </table></td>
        <td class="btn_between_space"></td>
        <td><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_31"></td>
              <td class="buttonOffMiddle" id="btn1_32" onClick="windowClose();" onMouseOver="btn_change_over(3)" onMouseOut="btn_change_out(3)" onBlur="btn_change(3)"><img src="${ctx}/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom"> ${key.close}</td>
              <td class="buttonOffRight" id="btn1_33"></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>

</body>
</html>